<font class="regular_subject">Register buy</font><br/>

<g:formRemote name="registerForm" url="[action:'save']" onSuccess="${remoteFunction(controller:'investments',action:'allcurrent',update:'main')};">
  <table>
    <tr>
      <td>
    <g:select
      onchange="${remoteFunction(action:'stocklist',update:'stocklist', params:'\'stockmarket=\'+this.value')}"
      name="stockmarket"
      noSelection="${['null':'Select a stock market']}"
      from="${stockmarkets}"
      optionKey="id" />
    </td>
    <td>
      <div id="stocklist"></div>
    </td>
    <td>
      <div id="browse_stock"></div>
    </td>
    </tr>
    <tr>
      <td colspan="2">
        <div id="details"></div>
      </td>
    </tr>
  </table>
</g:formRemote>
